i = input() |
if i == "binary": |
print("Correct") |
else: |
print("Name the number system that only has two states") |
print("Incorrect") |
i = input() |
if i == "binary": |
    print("Correct") |
else: |
print("Name the number system that only has two states") |
    print("Incorrect") |
1 | print("Name the number system that only has two states") |
2 | i = input() |
3 | if i == "binary": |
4 |     print("Correct") |
5 | else: |
6 |     print("Incorrect") |
7 |      |
print("Correct") |
i = input() |
print("Incorrect") |
else: |
print("Enter a country in the UK") |
if i == "England" or i == "Scotland" or i == "Wales" or i == "Northern Ireland": |
  print("Correct") |
i = input() |
  print("Incorrect") |
else: |
print("Enter a country in the UK") |
if i == "England" or i == "Scotland" or i == "Wales" or i == "Northern Ireland": |
1 | print("Enter a country in the UK") |
2 | i = input() |
3 | if i == "England" or i == "Scotland" or i == "Wales" or i == "Northern Ireland": |
4 |   print("Correct") |
5 | else: |
6 |   print("Incorrect") |
i = input() |
i = int(i) |
r = i % 5 |
print("Enter a number") |
print(r) |
1 | print("Enter a number") |
2 | i = input() |
3 | i = int(i) |
4 | r = i % 5 |
5 | print(r) |
r = i // 5 |
i = int(i) |
print(r) |
i = input() |
print("Enter a number") |
1 | print("Enter a number") |
2 | i = input() |
3 | i = int(i) |
4 | r = i // 5 |
5 | print(r) |
print("Correct") |
s = input() |
if s == "8": |
print("Incorrect") |
print("How many bits in a byte?") |
else: |
    print("Correct") |
s = input() |
if s == "8": |
    print("Incorrect") |
print("How many bits in a byte?") |
else: |
1 | print("How many bits in a byte?") |
2 | s = input() |
3 | if s == "8": |
4 |     print("Correct") |
5 | else: |
6 |     print("Incorrect") |
7 |      |
r = i % 2 |
print("Even") |
i = int(i) |
else: |
print("Enter a number") |
i = input() |
print("Odd") |
if r == 0: |
r = i % 2 |
    print("Even") |
i = int(i) |
else: |
print("Enter a number") |
i = input() |
    print("Odd") |
if r == 0: |
1 | print("Enter a number") |
2 | i = input() |
3 | i = int(i) |
4 | r = i % 2 |
5 | if r == 0: |
6 |     print("Even") |
7 | else: |
8 |     print("Odd") |
9 |      |
i = int(i) |
print("buzz") |
print("Fizz") |
five = i % 5 |
if five == 0 and three == 0: |
elif three == 0: |
i = input() |
three = i % 3 |
elif five == 0: |
print("Fizzbuzz") |
print("Enter a number") |
i = int(i) |
    print("buzz") |
    print("Fizz") |
five = i % 5 |
if five == 0 and three == 0: |
elif three == 0: |
i = input() |
three = i % 3 |
elif five == 0: |
    print("Fizzbuzz") |
print("Enter a number") |
1 | print("Enter a number") |
2 | i = input() |
3 | i = int(i) |
4 | five = i % 5 |
5 | three = i % 3 |
6 | if five == 0 and three == 0: |
7 |     print("Fizzbuzz") |
8 | elif five == 0: |
9 |     print("buzz") |
10 | elif three == 0: |
11 |     print("Fizz") |
12 |      |
print("Enter a password") |
if u == "Billy" and p == "train": |
u = input() |
p = input() |
else: |
print("That is incorrect") |
print("Enter a username") |
print("That is correct") |
print("Enter a password") |
if u == "Billy" and p == "train": |
u = input() |
p = input() |
else: |
    print("That is incorrect") |
print("Enter a username") |
    print("That is correct") |
1 | print("Enter a username") |
2 | u = input() |
3 | print("Enter a password") |
4 | p = input() |
5 | if u == "Billy" and p == "train": |
6 |     print("That is correct") |
7 | else: |
8 |     print("That is incorrect") |
print("Division:" + d) |
r = str(r) |
r = i % 5 |
print("Remainder:" + r) |
id = i // 5 |
print("Integer Division:" + id) |
id = str(id) |
d = str(d) |
i = input() |
print("Enter an integer") |
i = int(i) |
d = i/5 |
1 | print("Enter an integer") |
2 | i = input() |
3 | i = int(i) |
4 | r = i % 5 |
5 | id = i // 5 |
6 | d = i/5 |
7 | r = str(r) |
8 | id = str(id) |
9 | d = str(d) |
10 | print("Remainder:" + r) |
11 | print("Integer Division:" + id) |
12 | print("Division:" + d) |
r = str(r) |
i = int(i) |
id = i // 4 |
print("Enter a number where the following results are the same:") |
print(i + " // 4 = " + id) |
i = str(i) |
r = i % 4 |
print("Correct") |
print(i + " % 4 = " + r) |
i = input() |
if id == r: |
id = str(id) |
print("Number % 4 == Number // 4") |
else: |
print("Incorrect") |
    r = str(r) |
i = int(i) |
id = i // 4 |
print("Enter a number where the following results are the same:") |
    print(i + " // 4 = " + id) |
    i = str(i) |
r = i % 4 |
    print("Correct") |
    print(i + " % 4 = " + r) |
i = input() |
if id == r: |
    id = str(id) |
print("Number % 4 == Number // 4") |
else: |
    print("Incorrect") |
1 | print("Enter a number where the following results are the same:") |
2 | print("Number % 4 == Number // 4") |
3 | i = input() |
4 | i = int(i) |
5 | r = i % 4 |
6 | id = i // 4 |
7 | if id == r: |
8 |     print("Correct") |
9 | else: |
10 |     print("Incorrect") |
11 |     i = str(i) |
12 |     r = str(r) |
13 |     id = str(id) |
14 |     print(i + " % 4 = " + r) |
15 |     print(i + " // 4 = " + id) |
n = 4 |
print("Try and guess my number!") |
i = int(i) |
print("Higher") |
print("Lower") |
elif n < i: |
if n == i: |
else: |
print("Well done!") |
i = input() |
n = 4 |
print("Try and guess my number!") |
i = int(i) |
    print("Higher") |
    print("Lower") |
elif n < i: |
if n == i: |
else: |
    print("Well done!") |
i = input() |
1 | n = 4 |
2 | print("Try and guess my number!") |
3 | i = input() |
4 | i = int(i) |
5 | if n == i: |
6 |     print("Well done!") |
7 | elif n < i: |
8 |     print("Lower") |
9 | else: |
10 |     print("Higher") |
11 |      |
f = float(f) |
print("Invalid") |
else: |
if f == i: |
print("Valid") |
f = input() |
i = int(f) |
print("Enter a whole number") |
f = float(f) |
    print("Invalid") |
else: |
if f == i: |
    print("Valid") |
f = input() |
i = int(f) |
print("Enter a whole number") |
1 | print("Enter a whole number") |
2 | f = input() |
3 | f = float(f) |
4 | i = int(f) |
5 | if f == i: |
6 |     print("Valid") |
7 | else: |
8 |     print("Invalid") |
s = s + h + " hours " |
m = i % 60 |
h = i // 60 |
if m == 1: |
s = s + m + " minutes" |
print("Enter the distance of your journey in km") |
s = "" |
i = input() |
i = int(i) |
print("Travel time:") |
elif m > 1: |
m = str(m) |
elif h > 1: |
h = str(h) |
if h == 1: |
print(s) |
s = s + "1 hour " |
s = s + "1 minute" |
    s = s + h + " hours " |
m = i % 60 |
h = i // 60 |
if m == 1: |
    s = s + m + " minutes" |
print("Enter the distance of your journey in km") |
s = "" |
i = input() |
i = int(i) |
print("Travel time:") |
elif m > 1: |
    m = str(m) |
elif h > 1: |
    h = str(h) |
if h == 1: |
print(s) |
    s = s + "1 hour " |
    s = s + "1 minute" |
1 | print("Enter the distance of your journey in km") |
2 | i = input() |
3 | i = int(i) |
4 | m = i % 60 |
5 | h = i // 60 |
6 | s = "" |
7 | if h == 1: |
8 |     s = s + "1 hour " |
9 | elif h > 1: |
10 |     h = str(h) |
11 |     s = s + h + " hours " |
12 | |
13 | if m == 1: |
14 |     s = s + "1 minute" |
15 | elif m > 1: |
16 |     m = str(m) |
17 |     s = s + m + " minutes" |
18 | print("Travel time:") |
19 | print(s) |
20 |      |
s = s + "A" |
s = s + id |
elif r == 12: |
elif r == 11: |
id = i // 16 |
print(s) |
elif id == 14: |
s = s + "E" |
r = str(r) |
if id < 10: |
id = str(id) |
s = s + "B" |
s = s + "D" |
i = int(i) |
s = s + "B" |
s = s + "F" |
elif r == 14: |
s = s + "D" |
i = input() |
s = "" |
print("Enter a number from 1 to 256") |
elif r == 15: |
elif id == 15: |
s = s + "C" |
if r < 10: |
s = s + r |
s = s + "E" |
r = i % 16 |
elif id == 10: |
s = s + "C" |
elif r == 13: |
s = s + "F" |
s = s + "A" |
elif id == 13: |
elif r == 10: |
elif id == 12: |
elif id == 11: |
    s = s + "A" |
    s = s + id |
elif r == 12: |
elif r == 11: |
id = i // 16 |
print(s) |
elif id == 14: |
    s = s + "E" |
    r = str(r) |
if id < 10: |
    id = str(id) |
    s = s + "B" |
    s = s + "D" |
i = int(i) |
    s = s + "B" |
    s = s + "F" |
elif r == 14: |
    s = s + "D" |
i = input() |
s = "" |
print("Enter a number from 1 to 256") |
elif r == 15: |
elif id == 15: |
    s = s + "C" |
if r < 10: |
    s = s + r |
    s = s + "E" |
r = i % 16 |
elif id == 10: |
    s = s + "C" |
elif r == 13: |
    s = s + "F" |
    s = s + "A" |
elif id == 13: |
elif r == 10: |
elif id == 12: |
elif id == 11: |
1 | print("Enter a number from 1 to 256") |
2 | i = input() |
3 | i = int(i) |
4 | r = i % 16 |
5 | id = i // 16 |
6 | s = "" |
7 | if id < 10: |
8 |     id = str(id) |
9 |     s = s + id |
10 | elif id == 10: |
11 |     s = s + "A" |
12 | elif id == 11: |
13 |     s = s + "B" |
14 | elif id == 12: |
15 |     s = s + "C" |
16 | elif id == 13: |
17 |     s = s + "D" |
18 | elif id == 14: |
19 |     s = s + "E" |
20 | elif id == 15: |
21 |     s = s + "F" |
22 |      |
23 | if r < 10: |
24 |     r = str(r) |
25 |     s = s + r |
26 | elif r == 10: |
27 |     s = s + "A" |
28 | elif r == 11: |
29 |     s = s + "B" |
30 | elif r == 12: |
31 |     s = s + "C" |
32 | elif r == 13: |
33 |     s = s + "D" |
34 | elif r == 14: |
35 |     s = s + "E" |
36 | elif r == 15: |
37 |     s = s + "F" |
38 | print(s) |
print(6) |
print(4) |
print(1) |
elif i1 == "A": |
else: |
if i1 == "A" and i2 == "B": |
print(5) |
i2 = input() |
elif i1 == "C": |
print(3) |
i1 = input() |
print("Enter two letters") |
elif i1 == "C" and (i2 == "D" or i2 == "E"): |
print(2) |
elif i2 == "F": |
    print(6) |
    print(4) |
    print(1) |
elif i1 == "A": |
else: |
if i1 == "A" and i2 == "B": |
    print(5) |
i2 = input() |
elif i1 == "C": |
    print(3) |
i1 = input() |
print("Enter two letters") |
elif i1 == "C" and (i2 == "D" or i2 == "E"): |
    print(2) |
elif i2 == "F": |
1 | print("Enter two letters") |
2 | i1 = input() |
3 | i2 = input() |
4 | if i1 == "A" and i2 == "B": |
5 |     print(1) |
6 | elif i1 == "A": |
7 |     print(2) |
8 | elif i1 == "C" and (i2 == "D" or i2 == "E"): |
9 |     print(3) |
10 | elif i1 == "C": |
11 |     print(4) |
12 | elif i2 == "F": |
13 |     print(5) |
14 | else: |
15 |     print(6) |